home *** CD-ROM | disk | FTP | other *** search
- Path: newsserver.rrzn.uni-hannover.de!tubsibr!duening
- From: duening@ibr.cs.tu-bs.de (Lars Duening)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: PPC compilers
- Date: 11 Jan 1996 22:21:04 GMT
- Organization: TU Braunschweig, Informatik (Bueltenweg), Germany
- Distribution: world
- Message-ID: <4d42gg$i2p@ra.ibr.cs.tu-bs.de>
- References: <john.hendrikx.40ka@grafix.xs4all.nl> <MQAQx*XOe@yaps.rhein.de> <OWhVx*42f@yaps.rhein.de> <4cuhng$dmn@maureen.teleport.com> <jasonb.821247870@cs.uwa.edu.au> <4d359i$ii7$1@sydney.DIALix.oz.au>
- Reply-To: duening@ibr.cs.tu-bs.de (Lars Duening)
- NNTP-Posting-Host: kastor.ibr.cs.tu-bs.de
-
- In article <4d359i$ii7$1@sydney.DIALix.oz.au> accolyte@sydney.DIALix.oz.au (Troy Till) writes:
- >Bear with me here, 'cause I don't know the second thing about C..
- >
- >can you do something to the equivalent of:
- >
- > addx.l d0,d1
- > move.w d1,d2
- >
- >Which is treating d1 as a long word, then a word. How would you implement
- >this in C?
-
- I'd try (int16)((int32)a+(int32)b) with int16 and int32 appropriately
- defined.
-
- But the question is: why should I treat d1 as long in the addition,
- when just the lower word is used afterwards?
- --
- Lars Duening; duening@ibr.cs.tu-bs.de
-